package com.example.l.zcq1;

import android.os.Parcel;
import android.os.Parcelable;

import java.lang.ref.SoftReference;

public class ceshiModel implements Parcelable {
    //图片名称
    private String image_name;
    //副标题
    private String image_state;
    //标题
    private String image_title;

    //类的构造方法
    public ceshiModel(String image_name,String image_state,String image_title){
        this.image_name=image_name;
        this.image_state=image_state;
        this.image_title=image_title;
    }

    protected ceshiModel(Parcel in){
        image_name=in.readString();
        image_state=in.readString();
        image_title=in.readString();
    }

    public static final Creator<ceshiModel> CREATOR=new Creator<ceshiModel>() {
        @Override
        public ceshiModel createFromParcel(Parcel in) {
            return new ceshiModel(in);
        }

        @Override
        public ceshiModel[] newArray(int size) {
            return new ceshiModel[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest,int flags){
        dest.writeString(image_name);
        dest.writeString(image_state);
        dest.writeString(image_title);
    }

    public String getImage_name(){return image_name;}
    public String getImage_state(){return image_state;}
    public String getImage_title(){return image_title;}
}
